package jdbc;

import utils.Tools;

import java.sql.Connection;

/**
 * Created by wang.bh
 */
public class SerializableRead {
    public static void main(String[] args) {
        TransThreadA ta = new TransThreadA();

        // id of inserted values
        // id is unique
        TransThreadC tc = new TransThreadC(6);
        ta.setIsolationLevel(Connection.TRANSACTION_SERIALIZABLE);

        ta.start();
        Tools.sleep(1_000);
        tc.start();
    }
}
